<?php
namespace app\common\validate;

use think\Validate;

class AuthAGroup extends Validate
{
    protected $rule = [
        'title' => 'require',
        'notation' => 'require',
    ];

    protected $message = [
        'title' => '{%title_val}',
        'notation' => '描述不能为空',
    ];

    protected $scene = [
        'add'   => ['title', 'notation'],
        'edit'  => ['title', 'notation'],
        'status' => ['status'],
        'title' => ['title'],
        'level' => ['level'],
        'notation' => ['notation'],
    ];
}